package com.daylightrobbery.server.packet.game.common;

import java.util.concurrent.ThreadLocalRandom;

public class RandomUtils {

    private static int BASE = 100;

    // 概率
    public static boolean getRandomResult(float percent){
        return ThreadLocalRandom.current().nextInt(0, BASE) < (int)(BASE * percent);
    }



}
